package com.ala4.oxcafe.boot.event;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户登录事件-用户登录后触发
 *
 * @author PING
 * @date 2025/8/17 11:58
 */
@Data
public class UserLoginEvent implements Serializable {

    private Long userId;
    private LocalDateTime loginDate;
    private String loginIp;

    private UserLoginEvent() {
    }

    public UserLoginEvent(Long userId, LocalDateTime loginDate, String loginIp) {
        this.userId = userId;
        this.loginDate = loginDate;
        this.loginIp = loginIp;
    }
}
